const getters = {
    money(state){
        let money = 0;            
        state.car.forEach(item => {                
            money += Number(item.price.substr(1)) * item.num            
        });
        
        return money;
    }
}

export default getters